package com.ruoyi.ihome.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信誉积分对象 sys_integral
 * 
 * @author mage
 * @date 2024-08-16
 */
public class SysIntegral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 积分 */
    @Excel(name = "积分")
    private Double integral;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /*用户信息*/
    private SysUser sysUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIntegral(Double integral)
    {
        this.integral = integral;
    }

    public Double getIntegral()
    {
        return integral;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("integral", getIntegral())
            .append("userId", getUserId())
                .append("sysUser", getSysUser())
            .toString();
    }
}
